package com.common.service.system;

import com.common.entity.system.DictionaryEntity;
import com.common.entity.system.DictionaryTypeEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

/**
 * @author johnny
 * @create 2021-05-13 9:31 上午
 **/
public interface DictionaryTypeService {
    List<DictionaryTypeEntity> findAll(Specification<DictionaryTypeEntity> whereSpec);
    Page<DictionaryTypeEntity> findAll(Specification<DictionaryTypeEntity> whereSpec, Pageable pageable);

    List<DictionaryTypeEntity> getAll();

    void delete(Long id);

    DictionaryTypeEntity save(DictionaryTypeEntity dictionaryTypeEntity);
}